package com.anjie.powerproject.service;
import com.anjie.powerproject.entity.RelationshipCom;
import com.anjie.powerproject.pojo.CustomEdgeMulti;
import com.anjie.powerproject.pojo.CustomRelationshipCom;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;
import java.util.ListResourceBundle;

public interface RelationshipComService {
    void saveRelationshipComList(List list);

    public List findAllRelationshipCom();

    List findRelationshipComById(Integer id);

    List findRelationshipComByStgyCode(Integer stgyCode);

    public void deleteRelationshipComByIdAndStgyCode(Integer id,Integer stgyCode);

    List findCustomRelationshipComList();

    RelationshipCom updateRelationshipCom(RelationshipCom relationshipCom);

    public void deleteRelationshipComById(Integer id);

    public void deleteRelationshipComByStgyCode(Integer stgyCode);

    List findRelationshipComByDeviceFromAndToAndStgyCode(Integer deviceFrom, Integer deviceTo,Integer stgyCode);

    List findRelationshipComByDeviceTo(Integer deviceTo);

    public void deleteRelationshipComByDeviceFromAndToAndStgyCode(Integer deviceFrom, Integer deviceTo,Integer stgyCode);

    List findCustomRelationshipComListByStgyCode(Integer stgyCode);

    List findAllStgyCode();

    List findCustomEdgeMulti(List<CustomRelationshipCom> customRelationshipComList);

    List findAllStgyCodeByGraph(Integer graphId);

    List findCustomRelationshipComListByGraphId(Integer graphId);

    List findDeviceToListByGrraphId(Integer graphId);

    boolean findRelationshipComsByDeviceFromAndDeviceTo(Integer deviceFrom,Integer deviceTo,Integer graphId);

    Integer getMaxStgyCode();

    void deleteRelationshipsByGraphId(Integer graphId);

    boolean checkStgyRepeat(List<RelationshipCom> addList);
}
